import { createStore } from "vuex";

export default createStore({
    state: {
        id: null,
    },
    mutations: {
        setId(state, id){
            state.id = id;
        },
    },
    actions: {
        setId({commit},id) {
            commit('setId',id);
        },
    },
});